$("#uploadBtn").click(function(){
	//first do the action
    var file = document.uploadForm.fileBox.files[0];
    xsltContent = file.getAsText("UTF-8");
    xsltName = file.fileName;
    params= "xsltContent="+xsltContent + "&xsltName=" + xsltName;
	$.post("xsltUpload", params,function(data){
		//making it work with FF......
		var serializer = new XMLSerializer();
		var xml = serializer.serializeToString(data);
		data = xml.replace("<firefoxsucks>","").replace("</firefoxsucks>","");
		//real begining fo function
		if(data != "success"){
			//reload content
		    alert("Operation failed!");  
		}
		$("#contenttext").load('contents/mytable.jsp');
	});
});


$("#xsltChoise").change(function(){
	file = "xsltFile="+this.options[this.selectedIndex].value;
	url="myTable?"+file;
	$("#myTableFrame").attr("src",url);
	$("#myTableFrame").load(function(){
        callback(this);
	});
});
